package com.xckj.cycling.utils;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;

/**
 * @Author: ChenYao
 * @Describe: 加载图片的工具类
 * @Date: 2023/3/14 21:55
 */
public class LoadImageUtil {
    /**
     * 加载头像
     *
     * @param url  头像地址
     * @param view 头像视图
     */
    public static void loadAvatar(Object url, ImageView view) {
        RequestOptions options = new RequestOptions();
        Glide.with(view).load(url)
                .apply(options)
                .into(view);
    }
}
